Equal to operator in javascript example